package org.kl.wx.repository;

import java.util.List;

import org.kl.bf.repository.BasicRepository;
import org.kl.wx.entity.WxUser;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

public interface WxUserDao extends BasicRepository<WxUser, String>, JpaSpecificationExecutor<WxUser> {
	List<WxUser> findByAppId(String id);

	List<WxUser> findByGroupsId(String id);

	WxUser findByAppIdAndGroupsIdAndOpenid(String appId, String groupsId, String opendid);

	List<WxUser> findByAppIdAndOpenid(String appId, String openid);

	List<WxUser> findByUnionid(String id);
}